import $http from '@/utils/request'
// 行政区列表
export const data1Api = (data) => {
  return $http({
    url: '/admin/region/getRegions',
    method: 'POST',
    data
  })
}
// 植物部位列表
export const data2Api = (data) => {
  return $http({
    url: '/admin/plant_parts/getPlantParts',
    method: 'POST',
    data
  })
}
// 植物部位列表
export const BotanyListApi = () => {
  return $http({
    url: '/admin/plant_parts/getPlantPartsTo',
    method: 'POST'
  })
}
// 修改植物
export const addBotany = (data) => {
  return $http({
    url: '/admin/plant_parts/setPlantParts',
    method: 'POST',
    data
  })
}
// 删除植物
export const deleBotanyApi = (data) => {
  return $http({
    url: '/admin/plant_parts/delPlantParts',
    method: 'POST',
    data
  })
}
// 危害症状列表
export const data3Api = (data) => {
  return $http({
    url: '/admin/symptom/getSymptoms',
    method: 'POST',
    data
  })
}
// 添加危害列表
export const addsymptomApi = (data) => {
  return $http({
    url: '/admin/symptom/setSymptom',
    method: 'POST',
    data
  })
}
// 删除危害
export const delesymptomApi = (data) => {
  return $http({
    url: '/admin/symptom/delSymptom',
    method: 'POST',
    data
  })
}
